package top.infopub.security.core;


import org.apache.shiro.authc.UsernamePasswordToken;


/**
 * 用户token
 * @author Awoke
 * @version 2018年9月17日
 * @see CaptchaUsernamePasswordToken
 * @since
 */
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {

    private static final long serialVersionUID = -6386649400031487356L;

    // 图形验证码
    private String captcha;

    // 登录来源表单
    private String loginForm;

    public CaptchaUsernamePasswordToken(String username, String password, boolean rememberMe,
                                        String host) {
        super(username, password, rememberMe, host);
    }

    public CaptchaUsernamePasswordToken(String username, String password, boolean rememberMe,
                                        String host, String captcha) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
    }

    public CaptchaUsernamePasswordToken(String username, String password, boolean rememberMe,
                                        String host, String captcha, String loginForm) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.loginForm = loginForm;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getLoginForm() {
        return loginForm;
    }

    public void setLoginForm(String loginForm) {
        this.loginForm = loginForm;
    }
}